package com.example.shengyin.dao;


import com.example.shengyin.entity.Team;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Service;

import java.awt.peer.LabelPeer;
import java.util.List;
@Service
public interface TeamMapper
{
    /**
     * 查询team
     * 
     * @param id team主键
     * @return team
     */
     Team selectById(Long id);

    /**
     * 查询team列表
     * 
     * @param team team
     * @return team集合
     */
     List<Team> select(Team team);

    /**
     * 新增team
     * 
     * @param team team
     * @return 结果
     */
     int add(Team team);

    /**
     * 修改team
     * 
     * @param team team
     * @return 结果
     */
     int update(Team team);

    /**
     * 删除team
     * 
     * @param id team主键
     * @return 结果
     */
     int delById(Long id);

    /**
     * 批量删除team
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
     int delByIds(String ids);

    List<Team> selectList(@Param("tname") String tname, @Param("pageNo") int pageNo, @Param("pageSize") int pageSize);

    int find(@Param("tname") String tname);

    List<Team> findAll();

    @Update("update d_team set isvalid=#{isvalid} where id=#{id}")
    public int updateIsvalid(@Param("isvalid")boolean isvalid,@Param("id")Long id);
}
